package com.wx.fresh.platform.controller;

import com.wx.fresh.common.util.CommonResult;
import com.wx.fresh.platform.vo.PlatformLoginVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 苏辞
 * 平台登录
 * @Date 2022/4/19 17:17
 */
@RestController
@Api(value = "平台管理人员登录与登出", tags = "平台登录界面")
@RequestMapping("/Platform")
public class PlatformLoginController {
    /**
     * 平台登入
     */
    @PostMapping("/login")
    @ApiOperation(value = "平台用户登录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "username", value = "用户名", required = true, paramType = "form"),
            @ApiImplicitParam(name = "password", value = "密码", required = true, paramType = "form"),
            @ApiImplicitParam(name = "generateCode", value = "生成验证码", required = true, paramType = "form"),
            @ApiImplicitParam(name = "inputCode", value = "输入验证码", required = true, paramType = "form")
    })
    public CommonResult PlatformLogin(PlatformLoginVO platformLoginVO) {
        return null;


    }

    /**
     * 平台退出
     */

    @PostMapping("/loginOut")
    @ApiOperation("退出登录")
    public CommonResult loginOut() {
        return null;
    }


}
